<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="pragma" content="no-cache">
		<link rel="stylesheet" type="text/css" href="js/tools/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="js/tools/easyui/themes/icon.css">
		<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/tools/easyui/easyloader.js"></script>
		<script type="text/javascript" src="js/tools/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="js/tools/uploadFile.js"></script>
		<script type="text/javascript" src="admin/js/public.js"></script>
		<script type="text/javascript" src="admin/js/links.js"></script>
		<script type="text/javascript">
		 var user='${user}';
		</script>
	</head>
	<body onresize="resize(560)">
	<input name="base" id="base" type="hidden"  value="<%=basePath%>"/>
	    <div><a href="javascript:void(0);" onclick="add()" class="easyui-linkbutton" iconCls="icon-add">添加</a></div>
		<table id="dataGrid"></table>
		<div id="dialog" title="添加友情链接" closed="true" style="width:450px;height:300px;text-align:leftr;padding-top: 50px;">
	        <input type="hidden" id="image">
	        <table  align="left" style="font-size: 12px;">
				<tr><td width="20%">名称:</td><td><input type="text" id="name" /></td></tr>
				<tr><td>URL:</td><td><input type="text" id="url" /></td></tr>
				<tr><td>LOGO:</td><td><input type="file"  id="file"/><a href="javascript:void(0);" onclick="uploadImage()">上传</a></td></tr>
				<tr><td>排序:</td><td><input type="text"  id="sort" size="2" value="1"/> </td></tr>
				<tr><td>推荐:</td><td><input type="checkbox"  id="recommend" value="1"/> </td></tr>
				<tr><td>网站简介:</td><td><input type="text"  id="introduction"/></td></tr>
				<tr><td><input id="add" type="button" onclick="addLinks()" value="添加"/><input style="display:none;" id="modify" type="button" onclick="modifyColumn()" value="修改"/></td><td></td></tr>
		    </table>
      </div>
	</body>
</html>
